#this comes below the assignment of the parsed options
#
#     #from here goes the old stuff
# 
#     if len(sys.argv) == 1:
#         options.show = True
#     elif len(sys.argv) == 2 and not options.show and not options.update:
#         try:
#             options.content = int(sys.argv[1])
#         except ValueError:
#             content = False
# 
#     r = Reminder()
# 
#     if options.update:
#         r.update_db()
# 
#     if options.show:
#         r.list_notes()
# 
#     if (options.edit or options.content or options.delete) is not None:
#         try:
#             options.content = int(options.content)
#         except:
#             print "no content"
#             try:
#                 options.edit = int(options.edit)
#             except:
#                 print "no edit"
#                 try:
#                     options.delete = int(options.delete)
#                 except:
#                     print "no delete"
#                     print '\n no note given to edit, delete or show \n'
# 
#         for n in range(len(r.notes)):
#             try:
#                 r.notes[n].split('/')[-1].replace('.note','').index(options.content)
#                 options.content = n
#                 break
#             except:
#                 try:
#                     r.notes[n].split('/')[-1].replace('.note','').index(options.edit)
#                     options.edit = n
#                     break
#                 except:
#                     try:
#                         r.notes[n].split('/')[-1].replace('.note','').index(options.delete)
#                         options.delete = n
#                         break
#                     except:
#                         continue
# 
#     if options.edit is not None:
#         try:
#             r.edit_note(options.edit)
#         except:
#             print '\n Note is not existent!!!\n'
#     #else:
#     #    print '\n You have to tell me if you want to edit a note or a reminder!!!\n'
# 
#     if options.content is not None:
#         try:
#             options.content = int(options.content)
#         except ValueError:
#             for n in range(len(r.notes)):
#                 try:
#                     r.notes[n].index(options.content)
#                     options.content = n
#                     break
#                 except ValueError:
#                     continue
#         try:
#             r.show_note(options.content)
#         except:
#             print '\n Note is not existent!!!\n'
# 
#     if options.delete is not None:
#         try:
#             r.remove_note(options.delete)
#         except:
#             print '\n Note is not existent!!!\n'
# 
#     if options.location is not None:
#         try:
#             print '\n ' + r.notes[options.location].replace('/'+r.notes[options.location].split('/')[-1],'') + '\n'
#         except:
#             print '\n Note is not existent!!!\n'
# 
# if __name__ == '__main__':
#     main()
